package com.cn.serverline.lineicp.produce.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author 王烁烁
 * @Date 2024/8/11
 */
@Data
public class MaterialComponentsVo {

    @ApiModelProperty(value = "代号")
    private String code;

    @ApiModelProperty("名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty("数量单位")
    @TableField("QUANTITY_UNIT")
    private String quantityUnit;

    @ApiModelProperty("数量")
    @TableField("MATERIAL_NUMBER")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long materialNumber;

    @ApiModelProperty("物料类型")
    @TableField("MATERIAL_TYPE")
    private String materialType;
}
